//
//  ThreeLinesCell.m
//  MonitoringNetwork
//
//  Created by admin on 2018/1/4.
//  Copyright © 2018年 wtmcxlm. All rights reserved.
//

#import "ThreeLinesCell.h"

@implementation ThreeLinesCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI
{
    
    UIView *backView = [UIView new];
    backView.backgroundColor = [UIColor colorWithRed:0.97f green:0.97f blue:0.97f alpha:1.00f];
    [self addSubview:backView];
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(self);
        make.height.mas_equalTo(11);
    }];
    
    _label1 = [UILabel LabelWithFont:TitleLagerFontSize andColor:TitleColor andTextAlignment:left andString:@"行驶里程数"];
    [self addSubview:_label1];
    [_label1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(kWidthOfPt(99));
        make.centerY.mas_equalTo(backView.mas_bottom).offset((140-11)/4.f);
        
    }];
    
    _label2 = [UILabel LabelWithFont:TitleLagerFontSize andColor:TitleColor andTextAlignment:left andString:@"0"];
    [self addSubview:_label2];
    [_label2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_centerX).offset(43);
        make.centerY.mas_equalTo(backView.mas_bottom).offset((140-11)/4.f);
    }];
    
    
    _label3 = [UILabel LabelWithFont:TitleLagerFontSize andColor:TitleColor andTextAlignment:left andString:@"平均每日里程"];
    [self addSubview:_label3];
    [_label3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(kWidthOfPt(99));
        make.centerY.mas_equalTo(backView.mas_bottom).offset((140-11)/2.f);
    }];
    
    _label4 = [UILabel LabelWithFont:TitleLagerFontSize andColor:TitleColor andTextAlignment:left andString:@"0"];
    [self addSubview:_label4];
    [_label4 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_centerX).offset(43);
        make.centerY.mas_equalTo(backView.mas_bottom).offset((140-11)/2.f);
    }];
    
    _label5 = [UILabel LabelWithFont:TitleLagerFontSize andColor:TitleColor andTextAlignment:left andString:@"平均每日每车里程"];
    [self addSubview:_label5];
    [_label5 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(kWidthOfPt(99));
        make.centerY.mas_equalTo(self.self.mas_bottom).offset(-(140-11)/4.f);
    }];
    
    _label6 = [UILabel LabelWithFont:TitleLagerFontSize andColor:TitleColor andTextAlignment:left andString:@"0"];
    [self addSubview:_label6];
    [_label6 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_centerX).offset(43);
        make.centerY.mas_equalTo(self.self.mas_bottom).offset(-(140-11)/4.f);
    }];
}
@end
